package cn.edu.nenu.contract.dto;

import java.io.Serializable;

/**
 * @author Kaginux
 * @version 6:33:28 PM May 1, 2011
 */
public class AssignmentDTO implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String workTaskTitle;
	private String sloverName;
	private int assignedWorkHours;
	private ITADate date;
	private boolean bonus;
	private boolean isFinshed;
	private int workTaskId;
	private String parentProjectName;

	public AssignmentDTO(String workTaskTitle, String sloverName,
			int assignedWorkHours, ITADate date, boolean bonus,
			boolean isFinshed, int workTaskId, String parentProjectName) {
		super();
		this.workTaskTitle = workTaskTitle;
		this.sloverName = sloverName;
		this.assignedWorkHours = assignedWorkHours;
		this.date = date;
		this.bonus = bonus;
		this.isFinshed = isFinshed;
		this.workTaskId = workTaskId;
		this.parentProjectName = parentProjectName;
	}

	public String getWorkTaskTitle() {
		return workTaskTitle;
	}

	public String getSloverName() {
		return sloverName;
	}

	public int getAssignedWorkHours() {
		return assignedWorkHours;
	}

	public ITADate getDate() {
		return date;
	}

	public boolean isBonus() {
		return bonus;
	}

	public boolean isFinshed() {
		return isFinshed;
	}

	public int getWorkTaskId() {
		return workTaskId;
	}

	public String getParentProjectName() {
		return parentProjectName;
	}

	public void setWorkTaskTitle(String workTaskTitle) {
		this.workTaskTitle = workTaskTitle;
	}

	public void setSloverName(String sloverName) {
		this.sloverName = sloverName;
	}

	public void setAssignedWorkHours(int assignedWorkHours) {
		this.assignedWorkHours = assignedWorkHours;
	}

	public void setDate(ITADate date) {
		this.date = date;
	}

	public void setBonus(boolean bonus) {
		this.bonus = bonus;
	}

	public void setFinshed(boolean isFinshed) {
		this.isFinshed = isFinshed;
	}

	public void setWorkTaskId(int workTaskId) {
		this.workTaskId = workTaskId;
	}

	public void setParentProjectName(String parentProjectName) {
		this.parentProjectName = parentProjectName;
	}

	@Override
	public String toString() {
		return "AssignmentDTO [workTaskTitle=" + workTaskTitle
				+ ", sloverName=" + sloverName + ", assignedWorkHours="
				+ assignedWorkHours + ", date=" + date + ", bonus=" + bonus
				+ ", isFinshed=" + isFinshed + ", workTaskId=" + workTaskId
				+ ", parentProjectName=" + parentProjectName + "]";
	}


}
